<?php
/*
 * @author atma <atma@atmaworks.com>
 * Created on 05-02-2009
 */
$conjugation_base = MODX_BASE_PATH.'assets/components/conjugation/snippets/';
include_once("{$conjugation_base}conjugation.inc.php");

if (class_exists('Conjugation')) {
   $cj = new Conjugation($modx);
} else {
    return 'error: Conjugation class not found';
}

$verb = isset($_POST['verb']) ? $_POST['verb'] : '';
$usevosotros = (isset($_POST['usevosotros']) && $_POST['usevosotros'] == 'on') ? true : false;
$usepronouns = (isset($_POST['usepronouns']) && $_POST['usepronouns'] == 'on') ? true : false;

$output = $cj->conjugate($verb, $usevosotros, $usepronouns);
return $output;
?>